# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit gnome2

IUSE=""
DESCRIPTION="AutoScan is an application designed to explore and to manage your network. Entire subnets can be scanned simultaneously without human intervention."
HOMEPAGE="http://autoscan.sf.net"

MY_P="AutoScan-${PV/.1/-R1}"
SRC_URI="http://autoscan.free.fr/${MY_P}.tar.gz"
LICENSE="GPL-2"
S=${WORKDIR}/${MY_P/-R1}
SLOT="0"
KEYWORDS="~x86"

src_compile() {
	cd ${S}/Sources/Autoscan
	econf || die
	sed -ie "s:src pixmaps:src:" Makefile || die "sed failed."
	emake || die "Make failed."
	cd ${S}/Sources/AutoScan_d
	econf || die
	emake || die "Make failed."
}

src_install() {
	cd ${S}/Sources/Autoscan
	einstall || die "install failed."
	cd ${S}/Sources/AutoScan_d
	einstall || die "install failed."
	dodir /usr/share
	mv ${S}/Data/* ${D}/usr/share
}
